<template>
  <div class="detail-list">
    <ul>
      <li v-for="(item, index) in list" :key="index">
        <h5 class="title border-bottom">
          <span class="icon"></span>
          {{ item.title }}
        </h5>
        <template v-if="item.children">
          <detail-list :list="item.children" class="children" />
        </template>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'detail-list',
  props: {
    list: Array
  },
  data() {
    return {
      
    }
  },
}
</script>

<style lang="stylus" scoped>
.title
  line-height .8rem
  font-size .32rem
  padding 0 .2rem
  .icon
    position relative
    top .06rem
    left .06rem
    display: inline-block;
    width: .36rem;
    height: .36rem;
    background: url(http://s.qunarzz.com/piao/image/touch/sight/detail.png) 0 -.45rem no-repeat;
    margin-right: .1rem;
    background-size: .4rem 3rem;
.children
  padding 0 .2rem
</style>